// 因为less是一个预处理器 -- 定义变量--颜色、方法

// 引用less文件包
@import "./common.less";

/* 全局页面通用配置 ----start----*/
* {
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
    font-family: "Microsoft YaHei", "PingFang SC", "Helvetica Neue", Helvetica, "Hiragino Sans GB", "微软雅黑", Arial, sans-serif;
}

*:before,
*:after {
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
}

html {
    height: 100%;
    font-family: "Microsoft YaHei", "PingFang SC", "Helvetica Neue", Helvetica, "Hiragino Sans GB", "微软雅黑", Arial, sans-serif;
    font-size: 20px;
    -ms-text-size-adjust: 100%;
    -webkit-text-size-adjust: 100%;
    -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
}

body {
    position: relative;
    height: 100%;
    margin: 0;
    font-family: "Microsoft YaHei", "PingFang SC", "Helvetica Neue", Helvetica, "Hiragino Sans GB", "微软雅黑", Arial, sans-serif;
    // 浏览器默认额字体是16px === 1rem 23px === ?
    font-size: 20px;
    line-height: 1.42857143;
    color: @c33;
    background-color: @cff;
}

article,
aside,
details,
figcaption,
figure,
footer,
header,
hgroup,
main,
menu,
nav,
section,
summary {
    display: block;
}

audio,
canvas,
progress,
video {
    display: inline-block;
    vertical-align: baseline;
}

a {
    text-decoration: none;
}

ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

/* 全局页面通用配置 ----end----*/

.application-container{
    display: block;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 99;

    &.no-header {
        > header{
            display: none;
        }  
        > main{
            background-color: @cff;
        }
    }
    > main {
        display: block;
        position: relative;
        width: 100%;
        height: calc(100% - 48px);
        background-color: @cf5;
        overflow-x: hidden;
        overflow-y: auto;
    }

    > header{
        height: 46px;
        display: block;
        position: relative;
        background-color: @fc9;
        .clear();

        .right,
        .left{
            float: left;
            display: block;
            height: 46px;
            z-index: 11;
            position: relative;
        }
        .right{
            float: right;
        }

        .midTitle{
            width: 100%;
            font-size: 1rem;
            color: @fontc;
            line-height: 46px;
            display: block;
            position: absolute;
            top: 0;
            left: 0;
            text-align: center;
            z-index: 1;
        }
        i{
            width: 28px;
            height: 46px;
            display: inline-block;
            margin: 0 8px;
            // z-index: 11;
            background: url('../image/index.png') center center / 28px 28px no-repeat;
        }
        .addBtn{
            background: url('../image/add.png') center center / 28px 28px no-repeat;
        }
        .backBtn{
            background: url('../image/back.png') center center / 26px 26px no-repeat;
        }
    }
}